<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('banner', 'BannerController');// 轮播图
    $router->resource('coupon_type','CouponTypeController'); // 优惠券
    $router->resource('goods','GoodController'); // 商品
    $router->resource('order','OrderController'); // 订单
    $router->resource('notice','NoticleController'); // 订单


});
